package com.fh.fruit.entity.order;

import java.math.BigDecimal;

/**
 * 
* 类名称：订单
* @version 1.0
 */
public class Order {
	
	
	//订单表对应字段
	private int id;
	private String codePre;
	private String codeSuf;
	private int transactionId;//支付id
	private String code;//订单号
	private int userId;
	private String type;
	private String state; //订单状态:00-未付款;01-已付款;02-待发货;03-待收货;04-已完成;05-已取消;06-申请退款;07-已退款;08-申请退货;09-已退货
	private BigDecimal totalPrice;//商品总价
	private BigDecimal realPrice;//实际付款金额
	private String leaveMessage;//留言
	private String closingTime;//成交时间
	private String payTime;//付款时间
	private String createTime;
	private String updateTime;
	private String deliveryTime;//发货时间
    private long version;
    private int operatorId;
	
   //订单商品表对应字段
	private long ogId;//主键id
	private int orderId;//订单id
	private int goodsId;
	private int classId;//分类ID
	private String goodsCode;//产品编码
	private String title;//商品标题
	private String subTitle;//商品副标题
	private String goodsAttribute;//商品属性
	private String goodsThumb;//商品图片
	private BigDecimal tradePrice;//批发价
	private BigDecimal retailPrice;//零售价
	private BigDecimal bidPrice;//进价
	private int number;//数量
	private String unit;
	private String buyUnit;
	private int unitNumber;
	
	
	private String phone;//手机号


	public int getId() {
		return id;
	}


	public void setId(int id) {
		this.id = id;
	}


	public String getCodePre() {
		return codePre;
	}


	public void setCodePre(String codePre) {
		this.codePre = codePre;
	}


	public String getCodeSuf() {
		return codeSuf;
	}


	public void setCodeSuf(String codeSuf) {
		this.codeSuf = codeSuf;
	}


	public int getTransactionId() {
		return transactionId;
	}


	public void setTransactionId(int transactionId) {
		this.transactionId = transactionId;
	}


	public String getCode() {
		return code;
	}


	public void setCode(String code) {
		this.code = code;
	}


	public int getUserId() {
		return userId;
	}


	public void setUserId(int userId) {
		this.userId = userId;
	}


	public String getType() {
		return type;
	}


	public void setType(String type) {
		this.type = type;
	}


	public String getState() {
		return state;
	}


	public void setState(String state) {
		this.state = state;
	}


	public BigDecimal getTotalPrice() {
		return totalPrice;
	}


	public void setTotalPrice(BigDecimal totalPrice) {
		this.totalPrice = totalPrice;
	}


	public BigDecimal getRealPrice() {
		return realPrice;
	}


	public void setRealPrice(BigDecimal realPrice) {
		this.realPrice = realPrice;
	}


	public String getLeaveMessage() {
		return leaveMessage;
	}


	public void setLeaveMessage(String leaveMessage) {
		this.leaveMessage = leaveMessage;
	}


	public String getClosingTime() {
		return closingTime;
	}


	public void setClosingTime(String closingTime) {
		this.closingTime = closingTime;
	}


	public String getPayTime() {
		return payTime;
	}


	public void setPayTime(String payTime) {
		this.payTime = payTime;
	}


	public String getCreateTime() {
		return createTime;
	}


	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}


	public String getUpdateTime() {
		return updateTime;
	}


	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}


	public String getDeliveryTime() {
		return deliveryTime;
	}


	public void setDeliveryTime(String deliveryTime) {
		this.deliveryTime = deliveryTime;
	}


	public long getVersion() {
		return version;
	}


	public void setVersion(long version) {
		this.version = version;
	}


	public int getOperatorId() {
		return operatorId;
	}


	public void setOperatorId(int operatorId) {
		this.operatorId = operatorId;
	}


	public long getOgId() {
		return ogId;
	}


	public void setOgId(long ogId) {
		this.ogId = ogId;
	}


	public int getOrderId() {
		return orderId;
	}


	public void setOrderId(int orderId) {
		this.orderId = orderId;
	}


	public int getGoodsId() {
		return goodsId;
	}


	public void setGoodsId(int goodsId) {
		this.goodsId = goodsId;
	}


	public int getClassId() {
		return classId;
	}


	public void setClassId(int classId) {
		this.classId = classId;
	}


	public String getGoodsCode() {
		return goodsCode;
	}


	public void setGoodsCode(String goodsCode) {
		this.goodsCode = goodsCode;
	}


	public String getTitle() {
		return title;
	}


	public void setTitle(String title) {
		this.title = title;
	}


	public String getSubTitle() {
		return subTitle;
	}


	public void setSubTitle(String subTitle) {
		this.subTitle = subTitle;
	}


	public String getGoodsAttribute() {
		return goodsAttribute;
	}


	public void setGoodsAttribute(String goodsAttribute) {
		this.goodsAttribute = goodsAttribute;
	}


	public String getGoodsThumb() {
		return goodsThumb;
	}


	public void setGoodsThumb(String goodsThumb) {
		this.goodsThumb = goodsThumb;
	}


	public BigDecimal getTradePrice() {
		return tradePrice;
	}


	public void setTradePrice(BigDecimal tradePrice) {
		this.tradePrice = tradePrice;
	}


	public BigDecimal getRetailPrice() {
		return retailPrice;
	}


	public void setRetailPrice(BigDecimal retailPrice) {
		this.retailPrice = retailPrice;
	}


	public BigDecimal getBidPrice() {
		return bidPrice;
	}


	public void setBidPrice(BigDecimal bidPrice) {
		this.bidPrice = bidPrice;
	}


	public int getNumber() {
		return number;
	}


	public void setNumber(int number) {
		this.number = number;
	}


	public String getUnit() {
		return unit;
	}


	public void setUnit(String unit) {
		this.unit = unit;
	}


	public String getBuyUnit() {
		return buyUnit;
	}


	public void setBuyUnit(String buyUnit) {
		this.buyUnit = buyUnit;
	}


	public int getUnitNumber() {
		return unitNumber;
	}


	public void setUnitNumber(int unitNumber) {
		this.unitNumber = unitNumber;
	}


	public String getPhone() {
		return phone;
	}


	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	
	
	
}
